home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / docs / makefile.sas < prev    next >
Encoding:
Makefile  |  1993-12-30  |  2.9 KB  |  115 lines

  1. #
  2. # Makefile for the IRIT solid modeler documentation (unix).
  3. #
  4.  
  5. #-----
  6. #
  7. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  8. # is sourced from several directories relative path specification will
  9. # be simple wrong.
  10. #
  11.  
  12. SRC_DIR = Work:T/Irit
  13. #
  14. # All libraries created will be installed into the LIB_DIR directory.
  15. #
  16. LIB_DIR = $(SRC_DIR)/lib
  17.  
  18. #
  19. # All includes files associated with the installed libraries will be
  20. # installed into the INC_DIR directory.
  21. #
  22. INC_DIR = $(SRC_DIR)/inc
  23.  
  24. #
  25. # All binaries created will be installed into the BIN_DIR directory.
  26. #
  27. BIN_DIR = $(SRC_DIR)/bin
  28.  
  29. #
  30. # Uncomment the correct set of variables to be used or modify it for
  31. # your system.
  32. #
  33. # -D flags:
  34. #
  35. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  36. #
  37. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  38. #    be used.
  39. #
  40. #  Emulation to the following function are available by defining the
  41. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  42. # -DGETCWD - if getcwd is not defined in this system.
  43. # -DSTRSTR - if strstr is not defined in this system.
  44. # -DSTRDUP - if strdup is not defined in this system.
  45. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  46. #
  47. # -DTIMES - if times is defined in your system, otherwise uses time.
  48. #
  49. # -DRAND - if the (s)rand random number generator exists.
  50. # -DRAND48 - ?rand48 random number generators exists.
  51. #    If non of RAND or RAND48 are defined, (s)random is used.
  52. #
  53. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  54. #
  55. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  56. #    varargs.h.
  57. #
  58. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  59. #
  60. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  61. #
  62. # Other, possibly useful defines (for c code development):
  63. #
  64. # -DDEBUG - for some debugging functions in the code (that can be invoked
  65. #        from a debugger).
  66. #
  67.  
  68. #
  69. # Flags for Amiga using SAS/C
  70. #
  71. # Use DEFINE=M68881 if you have a 68881/68882/68040
  72. # Use DEFINE=MIEEE if you want to use the IEEE math library
  73. # Use DEFINE=MFFP if you want to use the FFP math library
  74. #
  75. CC = sc
  76. DFLAGS = DEFINE=M68881 DEFINE=RAND48
  77. CFLAGS = $(DFLAGS) CPU=68040 MATH=68882 NOSTACKCHECK STRMERGE IGNORE=79
  78. MORELIBS = 
  79. GRAPDRVS =nuldrvs amidrvs
  80.  
  81. #
  82. # Default rule for compilation.
  83. #
  84. .c.o:
  85.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  86.  
  87. #
  88. # All libraries.
  89. LIBS = $(LIB_DIR)/geom.lib $(LIB_DIR)/prsr.lib $(LIB_DIR)/cagd.lib\
  90.        $(LIB_DIR)/misc.lib #$(LIB_DIR)/gif.lib
  91. #-----
  92.  
  93. all:    irit.tex irit.doc irit.hlp
  94.  
  95. HELP_OBJS = irithlp.o
  96.  
  97. irithlp: $(HELP_OBJS)
  98.     slink TO irithlp FROM lib:c.o $(HELP_OBJS) LIB LIB:sc.lib\
  99.     SC ND NOICONS
  100.  
  101.  
  102. install: irit.hlp
  103.     Copy irit.hlp $(BIN_DIR)
  104.     Delete irit.hlp
  105.  
  106. irit.tex: irithlp irit.src
  107.     irithlp -l -o irit.tex irit.src
  108.  
  109. irit.hlp: irithlp irit.src
  110.     irithlp -h -o irit.hlp irit.src
  111.  
  112. irit.doc: irithlp irit.src
  113.     irithlp -t -o irit.doc irit.src
  114.  
  115.